import 'package:flutter_app/config/config.dart';
import 'package:flutter_app/scoped_model/city.dart';
import 'package:scoped_model/scoped_model.dart';
import 'package:flutter/material.dart';

class ScopedHelperModel {
  static T getModel<T extends Model>(BuildContext context) {
    return ScopedModel.of(context, rebuildOnChange: true);
  }

  static String getAreaId(BuildContext context) {
    return ScopedHelperModel.getModel<CityModel>(context).city.id;
  }
}
